﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SPanicBuyMsg extends IMessageBase
    {
        public var version:int;
        public var panicBuyItems:Dictionary;
        public var panicBuyShop:SPanicBuyShopMsg;
        public const _type:int = 15076;
        public static var _regist:SPanicBuyMsg = new SPanicBuyMsg(true);

        public function SPanicBuyMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPanicBuyMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.version);
            DictPanicBuyItemMsgHelper.write(param1, this.panicBuyItems);
            this.panicBuyShop.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.version = param1.readInt();
            this.panicBuyItems = DictPanicBuyItemMsgHelper.read(param1);
            this.panicBuyShop = new SPanicBuyShopMsg();
            this.panicBuyShop.__read(param1);
            return;
        }// end function

    }
}
